package com.mallcloud.mall.mall.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.mallcloud.mall.common.core.util.ValidGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

@ApiModel(value = "MallUserLevelModel", description = "mall用户等级")
@Data
@TableName("USERSLEVEL")
public class MallUserLevelModel implements Serializable {
    private static final long serialVersionUID = 1L;

	@JsonSerialize(using = ToStringSerializer.class)
	@NotNull(message = "ID为空", groups = {ValidGroup.Update.class})
    @TableId(value = "ulid", type = IdType.ASSIGN_ID)
    @ApiModelProperty(value="主键")
    private Long id;

    @ApiModelProperty(value="等级名称")
	@TableField("ulname")
    private String levelName;

    @ApiModelProperty(value="等级序号，从1开始，越大等级越高")
	@TableField("ullevel")
    private BigDecimal levelNo;

    @ApiModelProperty(value="升级所需积分区间开始值")
	@TableField("uljfmin")
    private BigDecimal pointsMin;

    @ApiModelProperty(value="升级所需积分区间结束值")
	@TableField("uljfmax")
    private BigDecimal pointsMax;

    @ApiModelProperty(value="状态（Y生效、N失效、D删除）")
	@TableField("ulstatus")
    private String status;

    @ApiModelProperty(value="是否为顶级（Y顶级、N非顶级）")
	@TableField("ultop")
    private String topFlag;

    @ApiModelProperty(value="卡面图片地址")
	@TableField("ulimage")
    private String imageUrl;

    @ApiModelProperty(value="会员卡积分说明")
	@TableField("ulcontentjf")
    private String vipCardPointsContent;

    @ApiModelProperty(value="会员卡咨询与售后说明")
	@TableField("ulcontentsh")
    private String vipCardSHContent;

    @ApiModelProperty(value="会员卡权益总体说明")
	@TableField("ulcontentqy")
    private String vipCardRightsContent;

    @ApiModelProperty(value="mis等级编号")
	@TableField("misklxbm")
    private String gradeNo;

    @ApiModelProperty(value="会员卡积分说明-图片")
	@TableField("ulimagejf")
    private String vipCardPointsContentUrl;

    @ApiModelProperty(value="会员卡咨询与售后说明-图片")
	@TableField("ulimagesh")
    private String vipCardSHContentUrl;

    @ApiModelProperty(value="会员卡权益总体说明-图片")
	@TableField("ulimageqy")
    private String vipCardRightsContentUrl;

    @ApiModelProperty(value="所属商场编码")
	@TableField("mallcode")
    private String storeNo;

}
